<!DOCTYPE html>
<html xmlns:th="https://www.thymeleaf.org">
<head>
    <title>Login</title>
</head>
<body>
<h1>登录</h1>
<div th:if="${param.error}">
    登录失败，请检查用户名密码！
</div>
<form th:action="@{/login}" method="post">
    用户名：<input type="text" name="username"><br/>
    密码：<input type="password" name="password"><br/>
    <input type="submit" value="登录">
</form>
</form>
</body>
</html>